package com.woniuxy.carlife.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.woniuxy.carlife.domain.Tags;
import com.woniuxy.carlife.mapper.TagsMapper;
import com.woniuxy.carlife.service.TagsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName: TagsServiceImpl
 *@Description: 服务实现类
 * @author: yanzhongliang     
 * @date: 2021-04-05
 */

@Service
public class TagsServiceImpl extends ServiceImpl<TagsMapper, Tags> implements TagsService {

    @Resource
    private TagsMapper tagsMapper;
    /**
     * 功能描述〈根据门店id查询服务标签〉
     * @author: yanzhongliang
     * @param: storeId
     * @return: List<Tags>
     * @Date 2021/4/7 17:27
     * @throws
     */

    @Override
    public List<Tags> getTagsFindList(Integer storeId) {
        QueryWrapper<Tags> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("store_id",storeId);
        List<Tags> tagsList=tagsMapper.selectList(queryWrapper);
        return tagsList;
    }
}
